package com.neusoft.neps.service;

import com.neusoft.common.domain.AQIlevel;
import com.neusoft.common.domain.City;
import com.neusoft.common.domain.Province;
import com.neusoft.config.FeignConfig;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient(name = "service-nepm",url = "http://localhost:7000", configuration = FeignConfig.class)
public interface NepmServiceClient {

    @GetMapping ("/service-nepm/administrator/find")
    Province find(@RequestParam("id") int id);
    @GetMapping("/service-nepm/administrator/query")
    List<City> query(@RequestParam("id") int id);
    @GetMapping("/service-nepm/administrator/find-city")
    City findCity(@RequestParam("id") int id);

    @GetMapping("/service-nepm/administrator/get-list")
    List<AQIlevel> getList();
    @GetMapping("/service-nepm/administrator/get-province")
    List<Province> getAllProvince();
}
